package ShuiGuo;

public class FruiTest {
    public static void main(String[] args) {
        Fruit apple = new Apple();
        apple.setName("苹果");
        apple.setPrice(5);
        apple.setArea("云南...");
        System.out.println(apple.toString());
        //..................................
        Fruit kiwi = new kiwi();
        kiwi.setName("梨");
        kiwi.setPrice(5);
        kiwi.setArea("云南....");
        System.out.println(apple.toString());
        //...................................
        Fruit watermelon = new Watermelon();
        watermelon.setName("香蕉");
        watermelon.setPrice(10);
        watermelon.setArea("未知");
        System.out.println(apple.toString());
    }
}
